local data = {};
for _, ms in ipairs(script:GetChildren()) do
	if ms.ClassName == "ModuleScript" then
		for k,v in pairs(require(ms)) do

		local code=v.code
		--去除回车换行
		code = string.gsub(code, "\r\n", "")
		--去除空格
		code = string.gsub(code, "%s+", "")
		--转为大写
		code = string.upper(code)

			data[code]=v
		end
	end;
end;


return {
	GetReward=function(code,baseData)
		if data[code] then
			return data[code].rewards
		end
	end,
}